package com.ezregex;

import static com.ezregex.RegexSegmentBuilder.aLiteral;

/**
 * Created with IntelliJ IDEA.
 * User: ggargiulo
 * Date: 3/8/13
 * Time: 5:27 PM
 * To change this template use File | Settings | File Templates.
 */
public class RegexSegmentFixture {

    public static String lowercaseLetters() {
        return "a-z";
    }

    public static String uppercaseLetters() {
        return "A-Z";
    }

    public static String letters() {
        return lowercaseLetters() + uppercaseLetters();
    }

    public static String character() {
        return CharacterClasses.WORD_CHARACTER.getRegexClassType();
    }

    public static RegexSegment anything() {
        return aLiteral(".").withCardinality(1);
    }

    public static RegexSegment anySequence() {
        return aLiteral(".").withInfiniteCardinality();
    }

}
